<template>
	<view class="sure-order-list" @click="handleSee">
		<image class="image" :src="realmName+item.goodsPic" mode="aspectFill">
		</image>
		<view class="right">
			<view class="title">{{item.goodsName}}</view>
			<view class="bottom">
				<view class="rule">
					{{item.specificationName || '规格值丢了'}}
				</view>
				<view class="" style="display: flex; justify-content: space-between;align-items: center;">
					<view class="price">
						<text style="font-size: 24rpx; margin-bottom: 6rpx;">￥</text>
						<text>{{item.mealCardPay}}</text>
					</view>
					<view class="numb">x {{item.num}}</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import {
		realmName
	} from "@/http";
	export default {
		props: {
			item: {
				type: Object,
				default: () => {}
			}
		},
		data() {
			return {
				realmName
			}
		},
		methods: {
			handleSee() {
				console.log('查看参数', this.item)
			}
		}
	}
</script>
<style lang="scss" scoped>
	.sure-order-list {
		display: flex;

		.right {
			flex: 1;
			position: relative;
			.bottom{
				position: absolute;
				left: 0;
				bottom: -6rpx;
				right: 0;
			}
			.price {
				display: flex;
				align-items: flex-end;
				font-size: 38rpx;
				font-weight: bold;
				color: #FD8F19;
			}

			.title {
				font-size: 28rpx;
				font-weight: 500;
				color: #1F1F1F;
			}

			.rule {
				margin-bottom: 6rpx;
				font-size: 22rpx;
				font-weight: 400;
				color: #878787;
			}

			.numb {
				font-size: 24rpx;
				font-weight: 400;
				color: #878787;
			}
		}

		.image {
			min-width: 160rpx;
			max-width: 160rpx;
			height: 160rpx;
			border-radius: 24rpx;
			margin-right: 24rpx;
		}
	}
</style>
